package com.yanqu.road.entity.enums;

/**
 * @author duli
 * @version 1.0
 * @date 2020/9/10 10:22
 * @Description 资源变更
 */
public class eItemChangeEnums {
    /**
     * 消费类型
     */

    public enum Type {
        CONSUME(1,"消费"),
        OUTPUT(2,"产出"),
        ;

        private int intValue;
        private String name;

        public int getIntValue() {
            return intValue;
        }
        public String getName() {
            return name;
        }

        Type(int value,String name ) {
            this.intValue = value;
            this.name = name;
        }
        public static Type findType(int value) {
            for (Type item : values()) {
                if (item.intValue == value) {
                    return  item;
                }
            }
            return null;
        }

    }
    /**
     * 消费道具类型
     */
    public enum TypeItem {
        RESOURCE(1,"资源"),
        PROPS(2,"道具"),

        ;

        private int intValue;
        private String name;

        public int getIntValue() {
            return intValue;
        }
        public String getName() {
            return name;
        }

        TypeItem(int value,String name ) {
            this.intValue = value;
            this.name = name;
        }
        public static TypeItem findType(int value) {
            for (TypeItem item : values()) {
                if (item.intValue == value) {
                    return  item;
                }
            }
            return null;
        }

    }

}
